<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/global.jsp" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广东石油化工学院学生信息管理系统 - 课表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link rel="stylesheet" type="text/css" href="${path}/static/js/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="${path}/static/css/admin.css"/>
    <link rel="shortcut icon" href="${path}/static/images/title/42496school_99040.ico" type="image/x-icon">

</head>
<body>
<div class="layui-tab page-content-wrap">
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <select lay-filter="selctOnchange" class="layui-select" lay-verify="" id="courseZhouCi" name="courseZhouCi">
                <option value="12" selected disabled style="display: none;">请选择时间</option>
                <c:forEach begin="1" end="20" varStatus="index">
                    <option value="${index.count}">
                           第${index.count}周
                    </option>
                </c:forEach>
            </select>
            <h2>当前是第${courseMsgList.get(0).zhouci}周</h2>
            <div class="layui-form" id="table-list">
                <table class="layui-table" lay-skin="line">
                    <colgroup>
                        <col class="hidden-xs" width="150">
                        <col class="hidden-xs" width="250">
                        <col class="hidden-xs" width="250">
                        <col class="hidden-xs" width="250">
                        <col class="hidden-xs" width="250">
                        <col class="hidden-xs" width="250">
                        <col class="hidden-xs" width="200">
                        <col class="hidden-xs" width="200">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="hidden-xs"></th>
                        <th class="hidden-xs">周一</th>
                        <th class="hidden-xs" align="center">周二</th>
                        <th class="hidden-xs" align="center">周三</th>
                        <th class="hidden-xs" align="center">周四</th>
                        <th class="hidden-xs" align="center">周五</th>
                        <th class="hidden-xs" align="center">周六</th>
                        <th class="hidden-xs" align="center">周日</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="parent collapsed">
                        <td>0102</td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='1' && course.type =='0102') || (course.hasCourseTime=='1' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='2' && course.type =='0102') || (course.hasCourseTime=='2' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='3' && course.type =='0102') || (course.hasCourseTime=='3' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='4' && course.type =='0102') || (course.hasCourseTime=='4' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='5' && course.type =='0102') || (course.hasCourseTime=='5' && course.type =='01020304')}">
                                ${course.coursename}@${course.classplace}
                            </c:if>
                        </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='6' && course.type =='0102') || (course.hasCourseTime=='6' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='7' && course.type =='0102') || (course.hasCourseTime=='7' && course.type =='01020304')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                    </tr>
                    <tr class="parent collapsed">
                        <td>0304</td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='1' && course.type =='0304') || course.hasCourseTime=='1' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='2' && course.type =='0304') || course.hasCourseTime=='2' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='3' && course.type =='0304') || course.hasCourseTime=='3' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='4' && course.type =='0304') || course.hasCourseTime=='4' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='5' && course.type =='0304') || course.hasCourseTime=='5' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='6' && course.type =='0304') || course.hasCourseTime=='6' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='7' && course.type =='0304') || course.hasCourseTime=='7' && course.type =='01020304'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                    </tr>
                    <tr class="parent collapsed">
                        <td>0506</td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='1' && course.type =='0506') || (course.hasCourseTime=='1' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='2' && course.type =='0506') || (course.hasCourseTime=='2' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='3' && course.type =='0506') || (course.hasCourseTime=='3' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='4' && course.type =='0506') || (course.hasCourseTime=='4' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='5' && course.type =='0506') || (course.hasCourseTime=='5' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='6' && course.type =='0506') || (course.hasCourseTime=='6' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='7' && course.type =='0506') || (course.hasCourseTime=='7' &&course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                    </tr>
                    <tr class="parent collapsed">
                        <td>0708</td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='1' && course.type =='0708') ||(course.hasCourseTime=='1' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='2' && course.type =='0708') ||(course.hasCourseTime=='2' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='3' && course.type =='0708') ||(course.hasCourseTime=='3' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='4' && course.type =='0708') ||(course.hasCourseTime=='4' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='5' && course.type =='0708') ||(course.hasCourseTime=='5' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='6' && course.type =='0708') ||(course.hasCourseTime=='6' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${(course.hasCourseTime=='7' && course.type =='0708') ||(course.hasCourseTime=='7' && course.type =='05060708')}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                    </tr>
                    <tr class="parent collapsed">
                        <td>0910</td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='1' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='2' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='3' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='4' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='5' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>
                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='6' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                        <td>
                            <c:forEach items="${courseMsgList}" var="course" varStatus="index">
                                <c:if test="${course.hasCourseTime=='7' && course.type =='0910'}">
                                    ${course.coursename}@${course.classplace}
                                </c:if>
                            </c:forEach>

                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<script src="${path}/static/js/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script>
    layui.use(['form', 'element', 'jquery', 'layer'], function () {
        var form = layui.form,
            $ = layui.jquery,
            layer = layui.layer,
            element = layui.element;

        $("#courseZhouCi").change(function(){
            window.location.href="${path}/user/getAllCourse?zhouci="+ ($(this).val());
        });

    })
</script>

</body>
</html>